package net.wangds.auth.module.impls.defaults;

import lombok.Getter;
import lombok.Setter;
import net.wangds.auth.module.Job;
import net.wangds.auth.module.Grant;
import net.wangds.data.Tree;
import net.wangds.data.impl.DefaultTree;
import net.wangds.data.impl.IdCreate;

import javax.persistence.Column;
import javax.persistence.Lob;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

@MappedSuperclass
public class DefaultJob extends DefaultTree<Job> implements net.wangds.auth.module.Job {
    private static final long serialVersionUID = 0;
    /**
     * 职位名称.
     */
    @Getter
    @Setter
    @Column(length = 50)
    private String jobName;

    /**
     * 职位描述.
     */
    @Getter
    @Setter
    @Column(length = 200)
    private String jobDesc;

    /**
     * 部门id.
     */
    @Getter
    @Setter
    @Column(length = 36)
    private String departmentId;

    @Getter
    @Setter
    @Transient
    private String departmentName;

    /**
     * 角色权限列表.
     */
    @Getter
    @Setter
    @Transient
    private List<Grant> privileges = new ArrayList<>();

    @Getter
    @Setter
    @Column()
    private long orderWeight=0;


}
